home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 3.iso / dist / fw_qt3.idb / usr / freeware / Qt / tutorial / t13 / gamebrd.h.z / gamebrd.h
C/C++ Source or Header  |  2002-04-08  |  686b  |  41 lines

  1. /****************************************************************
  2. **
  3. ** Definition of GameBoard class, Qt tutorial 13
  4. **
  5. ****************************************************************/
  6.  
  7. #ifndef GAMEBRD_H
  8. #define GAMEBRD_H
  9.  
  10. #include <qwidget.h>
  11.  
  12. class QPushButton;
  13. class LCDRange;
  14. class QLCDNumber;
  15. class CannonField;
  16.  
  17. #include "lcdrange.h"
  18. #include "cannon.h"
  19.  
  20.  
  21. class GameBoard : public QWidget
  22. {
  23.     Q_OBJECT
  24. public:
  25.     GameBoard( QWidget *parent=0, const char *name=0 );
  26.  
  27. protected slots:
  28.     void  fire();
  29.     void  hit();
  30.     void  missed();
  31.     void  newGame();
  32.  
  33. private:
  34.     QLCDNumber  *hits;
  35.     QLCDNumber  *shotsLeft;
  36.     CannonField *cannonField;
  37. };
  38.  
  39.  
  40. #endif // GAMEBRD_H
  41.